<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"/>
    <!--department js代码-->
    <script src="/static/js/grade.js"></script>
    <title>员工管理</title>
</head>
<body>
<%--数据表格--%>
<table id="datagrid">
</table>

<%--toolbar工具框--%>
<div id="toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true"
       data-cmd="add">新增</a>
    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true"
       data-cmd="edit">编辑</a>
    <a id="btn_delete" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="delete">删除</a>
    <a id="state_btn" class="easyui-linkbutton" iconCls="icon-remove" plain="true"
       data-cmd="changeState">开班</a>

    <a id="" class="easyui-linkbutton" iconCls="icon-loss" plain="true" data-cmd="dispatch">分配班主任</a>

    <a class="easyui-linkbutton" iconCls="icon-out" plain="true" data-cmd="importXls">上传班级课程表</a>

</div>


<div id="teacher_btns">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="confirm">确定</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
</div>



<%--课程表的上传下载--%>
<div id="schedule_import">
    <form id="schedule_form" action="#" method="post" enctype="multipart/form-data">
        <table><tr><td style="text-align: center"><a id="download" class="easyui-linkbutton" iconCls="icon-codeOut" plain="true" data-cmd="download">模板下载</a><br></td></tr></table>
        <br/>
        <table><tr><td>课程表上传:</td><td><input id="schedules" name="file" class="easyui-filebox" style="width:300px"
                                             data-options="accept:'application/vnd.ms-excel',multiple:false,buttonText:'请选择要上传的课程表'"></td></tr></table>
        <br/>
        <table><tr><td style="text-align: center"><a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="upload">提交</a></a><br></td></tr></table>
    </form>
</div>




<%--弹出框--%>
<div id="dialog" align="center">
    <form id="form" method="post">
        <input type="hidden" name="id" id="gradeId">
        <table align="center" style="margin-top: 15px">
            <tbody>
            <tr>
                <td>班级名称</td><td>&nbsp;&nbsp;</td>
                <td><input class="easyui-textbox"  name="className"/></td>
            </tr>
            <tr><td>&nbsp;&nbsp;</td></tr>
            <tr>
                <td>学生数量</td><td>&nbsp;&nbsp;</td>
                <td><input class="easyui-textbox"  name="studentNum"/></td>
            </tr>
            <tr><td>&nbsp;&nbsp;</td></tr>
            <tr>
                <td>所属学院</td><td>&nbsp;&nbsp;</td>
                <td><input class="easyui-combobox"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=college',valueField:'id',textField:'name',panelHeight:'auto'"
                           name="college.id"></td>
            </tr>
            <tr><td>&nbsp;&nbsp;</td></tr>
            <tr>
                <td>所在教室</td><td>&nbsp;&nbsp;</td>
                <td><input class="easyui-combobox"
                           data-options="url:'/classroom/list.do',valueField:'id',textField:'name',panelHeight:'auto'"
                           name="classroomName.id">
            </tr>
            </tbody>
        </table>
    </form>
</div>
<div id="dispatch" align="center">
    <form id="dispatchForm">
        <table>
            <tr>
                <td>班主任<a class="easyui-combobox"
                          data-options="valueField:'id',textField:'username',panelHeight:'auto',
                            url:'/employee/selectTeacher.do'" name="realname"/></td>
            </tr>
        </table>
    </form>
</div>
<div id="buttons2">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" data-cmd="dispatchSubmit">提交</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-no'" data-cmd="cancel">关闭</a>
</div>
</body>
</html>
